<template>
  <div class="goods-list">
    <!-- 我是goodsList:{{goods}} -->
    <goods-list-item v-for="item in goods" :key="item.id" :goodsItem="item"></goods-list-item>
  </div>
</template>

<script>
import GoodsListItem from './GoodsListItem.vue';
export default {
  name: 'GoodsList',
  components:{
    GoodsListItem

  },
  props:{
    goods:{
      type:Array,
      default(){
        return []
      }
    }
  },
  data() {
    return {
    };
  },
  computed:{
  },
  watch:{
  },
  methods: {},
};
</script>

<style scoped>
.goods-list {
  display: flex;
  flex-wrap: wrap;
}
</style>
